package com.example.back.dao;

import com.example.back.bean.GroupInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GroupInfoDao {

    @Select("select * from t_group where parentGroup = 0 order by createdTime desc")
    public List<GroupInfo> all();

    @Select("select * from t_group where groupId=#{id}")
    public GroupInfo one(int id);
}
